package ooday02;

public class AnimalTest {
    public static void main(String[] args) {
        Dog dog = new Dog("小白", 2, "白色");
        dog.eat();
        dog.drink();
        dog.lookHome();
        System.out.println("-----------------------------------------------");

        Chick chick = new Chick("小红", 2, "红色");
        chick.eat();
        chick.drink();
        chick.layEggs();
        System.out.println("-----------------------------------------------");

        Fish fish = new Fish("小银", 2, "银色");
        fish.eat();
        fish.drink();
        System.out.println("-----------------------------------------------");

 /*       Dog dog =new Dog("小黑",2,"黑色");
        dog.eat();
        dog.drink();
        dog.lookHome();
        System.out.println("-----------------------------------------------");

        Chick chick =new Chick("小花",2,"红色");
        chick.eat();
        chick.drink();
        chick.layEggs();
        System.out.println("-----------------------------------------------");

        Fish fish =new Fish("小金",2,"金");
        fish.eat();
        fish.drink();
        System.out.println("-----------------------------------------------");

  */
    }

}
